package com.inews.base.school.repository;

import java.io.Serializable;

import com.inews.base.persistence.mybatis.MyBatisRepository;
import com.inews.business.entity.BaseEntity;

@MyBatisRepository
public interface CommonDao<I extends Serializable, T extends BaseEntity<I>> {
	T getById(I id);
	void insert(T entity);
	void update(T entity);
	void delete(T entity);
	void deleteAll();
}
